package com.assets.util;


import java.io.File;

import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;


public interface HttpServer {

  @POST("/api/checkdetailQueryById")
  @FormUrlEncoded
  Observable<ResponseBody> loadData(@Field("userId") String userId, @Field("checkId") String checkId);

  @POST("/api/asstesUpdata")
  @FormUrlEncoded
  Observable<ResponseBody> updatePlace(@Field("data") String data);

  //盘盈数据单独提交
  @POST("/api/checkTextAdd")
  @FormUrlEncoded
  Observable<ResponseBody> profitDataSubmit(@Field("data") String data, @Field("id") String id);


  @POST("/api/checkTextUpdata")
  @FormUrlEncoded
  Observable<ResponseBody> submit(@Field("data") String data, @Field("id") String id);

  @POST("/api/checkdetailQueryByIds")
  @FormUrlEncoded
  Observable<ResponseBody> rfidProfit(@Field("checkId") String checkId, @Field("rfid") String rfid, @Field("assetNumber") String assetNumber);

  @GET("/api/getVersionPDA")
  Observable<ResponseBody> getVersion();

  @GET("api/getAPKPDA")
  Flowable<ResponseBody> updateApp();



}
